package com.studerb.events;

import com.studerb.tasks.interfaces.ITask;

public class TaskServiceEvent {
    public enum EventType {
        ADDED, STARTED, COMPLETED, REMOVED
    }

    public enum Queue {
        ACTIVE, COMPLETED, FAILED, SCRATCH
    }

    private ITask task;
    private EventType type;
    private Queue queue;

    public TaskServiceEvent(ITask task, EventType type, Queue queue) {
        this.task = task;
        this.type = type;
        this.queue = queue;
    }

    public Queue getQueue() {
        return queue;
    }

    public ITask getTask() {
        return task;
    }

    public EventType getType() {
        return type;
    }
}
